<template>
  <el-card class="card-body-np ce-card border-gre">
    <div class="ce-container" @click="goEc()">
        <div class="ce-content ce-column">
          <el-row  class="ce-content-desc">
            <el-col :span="24" class="ep-name"><span >{{ep.basicTitle}}</span></el-col>
            <el-col :span="24" >
              <p style="height: 45px;">{{ep.basicDescription.substr(0, 28)}}...</p>
              <!-- <p>{{ep.basicDescription}}</p> -->
            </el-col>
          </el-row>
        </div>
        <div class="ce-icon ce-column">
          <div class="zoomImage" v-lazy:background-image="ep.basicThumbnails"></div>
        </div>
    </div>
  </el-card>
</template>

<script>
  export default {
    name: 'celebrity-enterprise',
    title: '明星企业',
    props: {
      ep: { // 企业信息
        type: Object
      }
    },
    methods: {
      goEc () {
        const {href} = this.$router.resolve({
          name: 'echome',
          params: {id: this.$compileStr(this.ep.modelId)}
        })
        window.open(href, '_blank')
      },
    }
  }
</script>
<style scoped>
  .ce-img {
    width: 50px;
  }
  .ep-name {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
  }
  .el-card {
    border-radius: 10px;
    font-size: 13px;
    color: #414141;
    text-align: left;
  }
  .ce-card {
    padding: 18px;
  }
  .ce-container {
      padding-left: 50px;   /* LC width */
      cursor: pointer;
      /* padding: 18px; */
  }
  .ce-container:hover .ce-title {
    color: #94C05A;
  }
  .ce-container .ce-column {
      /* height: 50px; */
      position: relative;
      float: left;
  }
  .ce-content {
      width: 100%;
  }
  .ce-icon {
      width: 50px;
      height: 50px;        /* LC width */
      right: 50px;          /* LC width */
      margin-left: -100%;
  }
  .ce-content-desc {
    margin-left: 15px;
  }
  .ce-content-desc p {
    line-height: 1.7;
    margin: 0;
    /* autoprefixer: on */
    overflow: hidden;
    /* autoprefixer: on */
    text-overflow: ellipsis;
    word-break: break-all;
    display: -webkit-box; /** 对象作为伸缩盒子模型显示 **/
    /*! autoprefixer: off */
    -webkit-box-orient: vertical; /** 设置或检索伸缩盒对象的子元素的排列方式 **/
    display:-moz-box;
    /*! autoprefixer: off */
    -moz-box-orient:vertical;
    -webkit-line-clamp: 2; /** 显示的行数 **/
  }
</style>
